<?php

use Faker\Generator as Faker;

$factory->define(App\Models\FsUser::class, function (Faker $faker) {
    $date_time = $faker->date . ' ' . $faker->time;
    $taizi = $faker->randomElement([
        '上海平台1',
        '北京平台2',
        '武汉平台3',
        '广州平台4',
        '深圳平台5',
    ]);
    return [
        'username'=> $faker->firstName,
        'user_id' => $faker->numberBetween(1, 4),
        'agent'=> $taizi,
        'register_time' =>$date_time,
        'balance'=>10000,
        'last_login_time'=>$date_time,
        'last_charge_time'=>$date_time,
        'last_refund_time'=>$date_time,
        'ip'=>'',
        'status'=>'',
        'lev'=>'',
        'true_name'=>$faker->name,
        'true_id'=>'',
        'phone_num'=>'+8618911392274',
        'qq'=>'',
        'mail'=>'',
        'province'=>'',
        'city'=>'',
        'bank_name'=>'',
        'bank_num'=>'',
        'remark'=>'',
        'site_id'=>null,
        'deposit_count'=>$faker->randomNumber(2),
        'deposit_max'=>$faker->randomNumber(4),
        'deposit_total'=>$faker->randomNumber(4),
        'withdrawal_count'=>$faker->numberBetween(0, 4),
        'withdrawal_total'=>$faker->randomNumber(3),
        'multiple'=>'0'
    ];
});
